{% extends 'base.html' %}

{% block content %}
<div class="container mt-4">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card border-danger">
                <div class="card-header bg-danger text-white">
                    <h4 class="mb-0">确认删除</h4>
                </div>
                <div class="card-body">
                    <p class="lead">您确定要删除章节 <strong>{{ chapter.name }}</strong> 吗？</p>
                    <p class="text-danger">此操作不可撤销。删除后，相关数据将永久丢失。</p>

                    <form method="post">
                        {% csrf_token %}
                        <div class="d-flex justify-content-between">
                            <a href="{% url 'core:subject_chapter_knowledge' CURRENT_SUBJECT_ID %}" class="btn btn-outline-secondary">取消</a>
                            <button type="submit" class="btn btn-danger">确认删除</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}